﻿namespace SS.WPF.Framework.Restriction
{
    public interface IRestriction
    {
        bool Validate(object value);

        string Description { get; }

        bool CanParse(string text);

        bool IsEnabled { get; set; }
    }

    public interface IRestriction<in T> : IRestriction
    {
        bool Validate(T value);
    }
}